package com.ziqikeji.strategy;

/**
 * 按照折扣策略计算价格
 * 促销策略实现类
 */
public class DiscountStrategy implements Strategy {

    @Override
    public double calPrice(double price) {
        //折扣率
        double discountRate = 0.9;

        return price * discountRate;
    }


}
